package com.saikuo.service.service;

import com.saikuo.service.api.ApiResultModel;

/**
 * Created by shanchangyu on 16/10/14.
 */
public interface IUserService {
    ApiResultModel sendVerifyCode(String mobile,int codeType);

    ApiResultModel register(String verifyCode, String mobile, String password);

    ApiResultModel forgetPassword(String verifyCode, String mobile, String newPassword);

    ApiResultModel pwdLogin(String mobile, String password);

    ApiResultModel codeLogin(String mobile, String password);

    ApiResultModel changePassword(int userId, String oldPassword, String newPassword);

    ApiResultModel addUserAddress(int userId, String mobile, String address, String name, Double lat, Double lng, String cityCode, String areaCode);

    ApiResultModel updateUserAddress(int id, String mobile, String address, String name, Double lat, Double lng, String cityCode, String areaCode);

    ApiResultModel getUserAddressById(int id);

    ApiResultModel deleteUserAddressById(int id);

    ApiResultModel getUserAddressByUserId(int userId);

    ApiResultModel createFeedBack(int userId,String message);
}
